package com.df.ez_game.tools;

import io.netty.util.AttributeKey;

public interface EzConstant {

    interface NetProto{
        int Tcp = 1;
        int Http = 2;
        int WebSocket = 3;
        int Udp = 4;
        int Kcp = 5;
    }

    interface ProtoConstant{
        byte[] emptyBytes = new byte[0];
        int[] emptyInt = new int[0];
        Object[] emptyObjects = new Object[0];
    }

    interface ErrorRespCode{
        int moshuError = -1;//魔术校验错误
        int serverIsBusy = -2;//服务器繁忙，消息队列满了
        int cmdNotFound = -3;//请求id未找到
        int paramIsEmpty = -4;//参数为空
        int paramParseError = -5;//参数解析错误
        int paramValidateFail = -6;//参数校验失败
    }
    interface NettyConstant{
        AttributeKey<Integer> UserId = AttributeKey.valueOf("UserId");
    }
}
